#pragma once
#include "activecomponentobj.h"

enum RadarState
{
	Radar_Default = 0,
	Radar_Send,
	Radar_Recv,
    Radar_Send_Recv
};

class DEF_MODELOBJ CRadarObj :
	public CActiveComponentObj
{
public:
	CRadarObj(CEntityObj *pParent);
	CRadarObj(CRadarObj *pChartObj);
	~CRadarObj(void);

public:
	virtual void Serialize(CArchive & ar)override;
	virtual CDisplayObj *CreateDisplayObj(long lLayerId)override;

	virtual CString GetPathName(){ RefreshResourcePath(); return m_strPathName;};
	virtual void SetPathName(const CString &val){ m_strPathName = val;};

private:
	CString m_strPathName;
	RadarState m_emState;

private:
	void RefreshResourcePath();

	CRadarObj(const CRadarObj&){}
	CRadarObj(CRadarObj &&){}
	CRadarObj &operator==(const CRadarObj &){return *this;};
	CRadarObj &operator==(CRadarObj &&){return *this;};
};

